<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <!--[if lt IE 9]>
<script type="text/javascript" src="../lib/html5.js"></script>
<script type="text/javascript" src="../lib/respond.min.js"></script>
<script type="text/javascript" src="../lib/PIE_IE678.js"></script>
<![endif]-->
    <link href="../css/H-ui.min.css" rel="stylesheet" type="text/css" />
    <link href="../css/H-ui.admin.css" rel="stylesheet" type="text/css" />
    <link href="../lib/icheck/icheck.css" rel="stylesheet" type="text/css" />
    <link href="../lib/Hui-iconfont/1.0.1/iconfont.css" rel="stylesheet" type="text/css" />
    <!--[if IE 6]>
<script type="text/javascript" src="../lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
    <title>流程定义</title>
</head>
<body>
    <div class="pd-20">
        <div>
            <form id="itemEdit" name="itemEdit" method="post" action="../ashx/spui.ashx" class="form form-horizontal">
                <input type="hidden" class="actionValue" id="editAction" name="action" value="add" />
                <input type="hidden" id="id" name="id" />
                <input type="hidden" id="tablename" name="tablename" value="" />
                <input type="hidden" id="tablemidname" name="tablemidname" value="" />
                <div class="row cl">
                    <label class="form-label col-2"><span class="c-red">*</span>流程模板名称：</label>
                    <div class="formControls col-6">
                        <input type="text" class="input-text" name="ffdename" id="ffdename" nullmsg="不能为空" datatype="*3-16" placeholder="4~16个字符，字母/中文/数字/下划线" />
                    </div>
                    <div class="col-2"></div>

                </div>


                <div class="row cl">
                    <div class="col-6 col-offset-4">
                        <button class="btn btn-primary radius" type="submit" id="btsub1">提交</button>&nbsp;&nbsp;
				<button class="btn btn-secondary radius" type="button" id="btn_reset">重置</button>&nbsp;&nbsp;
				<button onclick="layer_close();" class="btn btn-default radius" type="button">返回</button>
                    </div>
                </div>
            </form>
        </div>
        <div class="panel panel-default    mt-20">
            <div class="panel-header"> <a href="javascript:;" onclick="addWfNext()" class="btn btn-danger  round"><i class="Hui-iconfont">&#xe600;</i>添加流程节点</a></div>
            <div class="panel-body">
                <table class="table table-border table-bordered table-striped table-hover" id="tablelist" width="100%">
                    <thead>
                        <tr class="text-c">
                            <th width="30"><a id="hcmtable_sall" onclick="hcmtable_sall();" href="javascript:;" title="全选反选"><i class="Hui-iconfont">&#xe608;全</i></a></th>
                            <th>类型</th>
                            <th>名称</th>
                            <th>业务状态</th>
                            <th>下一步名称</th>
                            <th>操作</th>
                        </tr>
                    </thead>
                    <tbody>
                    </tbody>
                </table>
            </div>
        </div>
   
    </div>
    <script src="../hcjsui/Scripts/jquery-1.9.1.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="../lib/icheck/jquery.icheck.min.js"></script>
    <script type="text/javascript" src="../lib/Validform/5.3.2/Validform.js"></script>
    <script type="text/javascript" src="../lib/layer/1.9.3/layer.js"></script>
    <script src="../hcjsui/js/_Define.js" type="text/javascript"></script>
    <script type="text/javascript" src="../js/hcui.js"></script>
    <script type="text/javascript" src="../js/hcui_au.js"></script>
    <script type="text/javascript" src="../lib/My97DatePicker/WdatePicker.js"></script>
    <script type="text/javascript" src="../lib/datatables/1.10.0/jtable.js"></script>
    <script type="text/javascript" src="../js/hcui_list.js"></script>
    <script type="text/javascript">
        //加载处理
        function loadin() {
            //本页面 
            spsetBaseNoBt("hcr_w_de", "id", "hcr_w_de as t", "id,fdename", "#tablelist", "hcrain_wf_de", "流程节点", "hcrain_wf_de_next");
            Mhcloadback[0] = "fdename";
        }
        function loadback(data) {
            if (aumid) {
                hcmtable = $(grid1ID).DataTable({
                    "serverSide": false,//服务端处理分页 无法使用当前查找
                    "bFilter": false,  //是否使用内置的过滤功能
                    "bInfo": false,//页脚信息
                    "bPaginate": false, //翻页功能
                    "bLengthChange": false, //改变每页显示数据数量
                    "ajax": {
                        "type": "POST",
                        "url": sposelUrl("hcr_w_next", "id,fntype,fnname,fnextname,fstatefyw,fnextid", " and fdeid=" + aumid) + "&sporderby=fnextid",
                        "data": function (d) {
                        }
                    },
                    aLengthMenu: [100],
                    "columns": [
                         { "data": "id" }
    , { "data": "fntype" }
    ,{ "data": "fnname" }
   ,{ "data": "fstatefyw" }
   ,{ "data": "fnextname" }
    ,{ "data": "id" }

                    ],
                    "columnDefs": [

                        {
                            "targets": [5],
                            "render": function (data, type, row) {
                                return "<a style=\"text-decoration:none\" class=\"ml-5\" onclick=\"toolUpdateById('" + data + "','','',800,400)\" href=\"javascript:;\" title=\"编辑\"><i class=\"Hui-iconfont\">&#xe6df;编辑</i></a> " +
                                       "<a style=\"text-decoration:none\" class=\"ml-5\" onclick=\"toolDelete('" + data + "','hcr_w_next','id')\"     href=\"javascript:;\" title=\"删除\"><i class=\"Hui-iconfont\">&#xe6e2;删除</i></a>";
                            }
                        },

                    {
                        "orderable": false,
                        "targets": [0,1, 2, 3,4,5]
                    }
                    ]
                });
            }

        }
        function addWfNext()
        {
            toolAdd("", spPageHtmlName + "-ae.html?action=add&fdeid=" + aumid, 800, 400);
        }
        
    </script>
</body>
</html>
